public class Student extends Member {

    protected String 	major;
    protected float	GPA;

    public	Student () { set( ) ; }
    public	Student ( Student s ) {
	 super( s );
         GPA 	= s.GPA;
	 major	= new String ( s.major );
    }
    public void set( ) {
    	super.set( );
	major	= Names.department[ rdm . nextInt( Names.department.length ) ] ;
        GPA	= (rdm.nextInt( 400 - 100 + 1 ) + 100 ) / 100.0f;
    }

    public String toString (  ) { return toString( true ); }

    public String toString ( boolean lab ) {
	return  (lab ? "STU " : "") + super.toString(false ) + String.format( " %1.2f %-15s", GPA, major ) ;
    }

   public String toTableRow(  ) { return toTableRow ( false ); }

   public String toTableRow( boolean partial ) {
	return  ( ! partial ? "\n    <TR>\n" : "" ) + super.toTableRow( true ) 
	        +  String.format( "<TD>%1.2f </TD><TD> %s</TD>", GPA, major ) 
	       + ( !partial ? "\n    </TR>\n" : "");
   }
}